package daily.may0527;

import java.util.stream.Stream;

public class StreamMapTest {
    public static void main(String[] args) {
        //获取一个String类型的Stream流
        Stream<String> stringStream = Stream.of("333", "666", "999", "11111");
        //使用map方法,把字符串类型的整数,转换(映射)为Integer类型的整数
        stringStream.map(s -> Integer.parseInt(s))//此处省略了return关键字
                .forEach(s -> System.out.print(s + 100 + " "));//433 766 1099 11211
    }
}
